#!/usr/bin/python3
# -*- coding: utf8 -*-
# Date   : 2021/07/20
# Author : Kwan
# Email  : allenxian@live.com
# Blog   : https://my.oschina.net/u/4173440

from flask_migrate import Migrate
from project import app, socketio
from project.flasky import db


migrate = Migrate(app, db)


if __name__ == "__main__":
    from project import create_app

    
    print("启动服务...")
    # gunicorn -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 module:app
    socketio.run(create_app(), host="0.0.0.0")